﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MMK.Paket_Tracker.Runtime.Helper
{
    /// <summary>
    /// 
    /// </summary>
    public static class Extensions
    {
        /// <summary>
        /// Toes the concat string.
        /// </summary>
        /// <param name="dict">The dict.</param>
        /// <returns></returns>
        public static String ToConcatString(this Dictionary<String, String> dict)
        {
            StringBuilder result = new StringBuilder();

            foreach (var item in dict)
            {
                result.Append(item.Key + item.Value + System.Environment.NewLine);
            }

            return result.ToString();
        }
    }
}
